/*
package com.leesche.zcsp.node.service.impl;

import com.leesche.zcsp.node.pay.sinopay.service.SinopayService;
import com.leesche.zcsp.node.utils.TenpayUtil;
import com.leesche.zcsp.node.web.constants.Constants;
import com.leesche.zcsp.node.web.model.ServOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.Date;

*/
/**
 * Created by Administrator on 2016-11-03.
 *//*

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:applicationContext.xml", "classpath*:applicationContext-mvc.xml" })
public class SinoPayServiceImpl {
    @Autowired
    SinopayService sinopayService;
    @Test
    public void test(){
        String orderNo = TenpayUtil.getOrderNo();
        ServOrder order = new ServOrder();
        order.setCreatetime(new Date());
        order.setCashFee(1000); //存储以分为单位
        order.setCoin(11);
        //order.setDeviceid(11);
        //order.setDiscountid(11);
        order.setTimeEnd(new Date());
        order.setTransactionId("");
        order.setTradeStateDesc("下订单");
        order.setTradeState(Constants.WECHAT_NOTPAY);
        order.setOutTradeNo(orderNo);
        order.setOpenid("");
       // order.setUserid(pubDevice.getAdminid());
//        sinopayService.prePay(order,"192.168.31.159","","");
    }
}
*/
